<?php 
include_once('connection/connection.php');
include('config.php');
$src=$_REQUEST['src'];
$habit=$_REQUEST['habit'];
$loc_id=$_REQUEST['loc_id'];
$frm=$_SESSION['form_id'];
$id1=$_SESSION['id1'];
$dis_name=$_SESSION['dis_name'];
$qr="select * from tbl_dtls_q3_loc where form_id='$frm'";
$res=mysql_query($qr);
$row1=mysql_fetch_array($res);

$qr2="select * from tbl_dtls_q3_last where loc_id='$loc_id' AND source_type='$src' AND habit_name='$habit'";
$res2=mysql_query($qr2);
$row=mysql_fetch_array($res2);
									
/*if(isset($_POST['submit']))
{ 
	header('Location: view_q3_4.php');
}*/	
?>
<html>
<head>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<link href="html_file/New Folder/css/style_question.css" type="text/css" rel="stylesheet" />
<title>Survey Form</title>
<body>
<div align="center">
<form action="" method="post" enctype="multipart/form-data" name="questionnaire3_8" id="questionnaire3_8" onSubmit="window.close();">
	<table border="0" width="800" id="table1" cellspacing="0" cellpadding="0">
		<tr>
			<td>&nbsp;</td>
		</tr>
		<tr>
			<td bgcolor="#EEEEEE" height="20"><font color="#000000">&nbsp;
			<span style="font-weight: 700">
			<font face="Arial" style="font-size: 8.5pt">Risk Assessment &amp; 
			Analysis (For EachRain Water Tank) </font></span></font></td>
		</tr>
		<tr>
			<td>&nbsp;</td>
		</tr>
		<tr>
			<td>
			<table width="100%" height="395" border="0" cellpadding="0" id="table12">
				<tr>
					<td width="58" align="center" height="29" bgcolor="#F7E6B7">
					<font style="font-size: 8.5pt" face="Verdana" color="#000000">
					S. No.</font></td>
					<td width="518" height="29" bgcolor="#F7E6B7">
					<p align="center">
					<font style="font-size: 8.5pt" face="Verdana" color="#000000">
					Question</font></td>
					<td width="133" height="29" bgcolor="#F7E6B7">
					<p align="center">
					<font style="font-size: 8.5pt" face="Verdana" color="#000000">
					Yes / No</font></td>
				</tr>
				<tr>
					<td width="58" height="36" align="center" bgcolor="#FDF9EE">
					<font style="font-size: 8.5pt" face="Verdana" color="#000000">
					1</font></td>
					<td width="518" bgcolor="#FDF9EE">
					<font face="Verdana" style="font-size: 9.5pt" color="#000000">
					&#2325;&#2381;&#2351;&#2366; &#2331;&#2340; &#2325;&#2375; &#2346;&#2352;&#2367;&#2325;&#2381;&#2359;&#2375;&#2340;&#2381;&#2352; &#2350;&#2375;&#2306; &#2325;&#2367;&#2360;&#2368; &#2346;&#2381;&#2352;&#2325;&#2366;&#2352; &#2325;&#2366; &#2342;&#2370;&#2359;&#2367;&#2340; &#2357;&#2366;&#2340;&#2366;&#2357;&#2352;&#2339; &#2361;&#2376;?(&#2346;&#2380;&#2343;&#2375;,&#2343;&#2370;&#2354;,&#2325;&#2370;&#2396;&#2366;)</font></td>
					
					<td width="133" bgcolor="#FDF9EE" align="center">
						<label id="habitation_name"><font style="font-size: 8.5pt; font-style: normal" face="Verdana"><?php if($row['risk_analysis_q1'] == 'YES'){ echo '&#2361;&#2366;&#2305;'; } else if($row['risk_analysis_q1'] == 'NO') { echo '&#2344;&#2361;&#2368;&#2306;'; }else { echo ''; }?></font></label>
					</td>
				</tr>
				<tr>
					<td width="58" height="25" align="center" bgcolor="#FDF9EE">
					<font style="font-size: 8.5pt" face="Verdana" color="#000000">
					2</font></td>
					<td width="518" bgcolor="#FDF9EE">
					<font face="Verdana" style="font-size: 9.5pt" color="#000000">
					&#2325;&#2381;&#2351;&#2366; &#2346;&#2366;&#2344;&#2368; &#2325;&#2366; &#2349;&#2339;&#2381;&#2337;&#2366;&#2352;&#2339; &#2325;&#2352;&#2344;&#2375; &#2357;&#2366;&#2354;&#2375; &#2346;&#2366;&#2311;&#2346; &#2327;&#2306;&#2342;&#2375; &#2361;&#2376;&#2306; ?</font></td>
					<td width="133" bgcolor="#FDF9EE" align="center">
						<label id="habitation_name"><font style="font-size: 8.5pt; font-style: normal" face="Verdana"><?php if($row['risk_analysis_q2'] == 'YES'){ echo '&#2361;&#2366;&#2305;'; } else if($row['risk_analysis_q2'] == 'NO') { echo '&#2344;&#2361;&#2368;&#2306;'; }else { echo ''; }?></font></label>
					</td>
				</tr>
				<tr>
					<td width="58" height="27" align="center" bgcolor="#FDF9EE">
					<font style="font-size: 8.5pt" face="Verdana" color="#000000">
					3</font></td>
					<td width="518" bgcolor="#FDF9EE">
					<font face="Verdana" style="font-size: 9.5pt" color="#000000">
					&#2325;&#2381;&#2351;&#2366; &#2335;&#2376;&#2306;&#2325; &#2325;&#2375; &#2347;&#2367;&#2354;&#2381;&#2335;&#2352; &#2348;&#2377;&#2325;&#2381;&#2360; &#2350;&#2375;&#2306; &#2325;&#2379;&#2312; &#2340;&#2381;&#2352;&#2369;&#2335;&#2368; &#2361;&#2376;?</font></td>
					<td width="133" bgcolor="#FDF9EE" align="center">
						<label id="habitation_name"><font style="font-size: 8.5pt; font-style: normal" face="Verdana"><?php if($row['risk_analysis_q3'] == 'YES'){ echo '&#2361;&#2366;&#2305;'; } else if($row['risk_analysis_q3'] == 'NO') { echo '&#2344;&#2361;&#2368;&#2306;'; }else { echo ''; }?></font></label>
					</td>
				</tr>
				<tr>
					<td width="58" height="34" align="center" bgcolor="#FDF9EE">
					<font style="font-size: 9.5pt" face="Verdana" color="#000000">
					4</font></td>
					<td width="518" bgcolor="#FDF9EE">
					<font face="Verdana" style="font-size: 9.5pt" color="#000000">
					&#2325;&#2381;&#2351;&#2366; &#2324;&#2352; &#2325;&#2379;&#2312; &#2360;&#2381;&#2352;&#2379;&#2340; &#2361;&#2376; &#2332;&#2367;&#2360;&#2360;&#2375; &#2327;&#2344;&#2381;&#2342;&#2366; &#2346;&#2366;&#2344;&#2368; &#2335;&#2376;&#2306;&#2325; &#2350;&#2375;&#2306; &#2310; &#2352;&#2361;&#2366; &#2361;&#2376;?</font></td>
					<td width="133" bgcolor="#FDF9EE" align="center">
						<label id="habitation_name"><font style="font-size: 8.5pt; font-style: normal" face="Verdana"><?php if($row['risk_analysis_q4'] == 'YES'){ echo '&#2361;&#2366;&#2305;'; } else if($row['risk_analysis_q4'] == 'NO') { echo '&#2344;&#2361;&#2368;&#2306;'; }else { echo ''; }?></font></label>
					</td>
				</tr>
				<tr>
					<td width="58" height="49" align="center" bgcolor="#FDF9EE">
					<font style="font-size: 8.5pt" face="Verdana" color="#000000">
					5</font></td>
					<td width="518" bgcolor="#FDF9EE">
					<font face="Verdana" style="font-size: 9.5pt" color="#000000">&#2325;&#2381;&#2351;&#2366; &#2335;&#2376;&#2306;&#2325; &#2325;&#2368; &#2342;&#2368;&#2357;&#2366;&#2352;&#2379;&#2306; &#2324;&#2352; &#2360;&#2367;&#2352;&#2375; &#2350;&#2375;&#2306; &#2325;&#2379;&#2312; &#2326;&#2352;&#2366;&#2348;&#2368; &#2361;&#2376;?(&#2342;&#2352;&#2366;&#2352;&#2375;&#2306;) &#2332;&#2367;&#2360;&#2360;&#2375; &#2342;&#2370;&#2359;&#2367;&#2340; &#2332;&#2354; &#2335;&#2376;&#2306;&#2325; &#2350;&#2375;&#2306; &#2346;&#2381;&#2352;&#2357;&#2375;&#2358; &#2325;&#2352; &#2352;&#2361;&#2366; &#2361;&#2379; ?
					</font></td>
					<td width="133" bgcolor="#FDF9EE" align="center">
						<label id="habitation_name"><font style="font-size: 8.5pt; font-style: normal" face="Verdana"><?php if($row['risk_analysis_q5'] == 'YES'){ echo '&#2361;&#2366;&#2305;'; } else if($row['risk_analysis_q5'] == 'NO') { echo '&#2344;&#2361;&#2368;&#2306;'; }else { echo ''; }?></font></label>
					</td>
				</tr>
				<tr>
					<td width="58" height="36" align="center" bgcolor="#FDF9EE">
					<font style="font-size: 8.5pt" face="Verdana" color="#000000">
					6</font></td>
					<td width="518" bgcolor="#FDF9EE">
					<font face="Verdana" style="font-size: 9.5pt" color="#000000">&#2325;&#2381;&#2351;&#2366; &#2335;&#2379;&#2306;&#2335;&#2368; &#2335;&#2370;&#2335;&#2368; &#2361;&#2369;&#2312; &#2361;&#2376; &#2351;&#2366; &#2325;&#2379;&#2312; &#2309;&#2344;&#2381;&#2351; &#2350;&#2361;&#2340;&#2381;&#2357;&#2346;&#2370;&#2352;&#2381;&#2339; &#2326;&#2352;&#2366;&#2348;&#2368; &#2361;&#2376;?
					</font></td>
					<td width="133" bgcolor="#FDF9EE" align="center">
						<label id="habitation_name"><font style="font-size: 8.5pt; font-style: normal" face="Verdana"><?php if($row['risk_analysis_q6'] == 'YES'){ echo '&#2361;&#2366;&#2305;'; } else if($row['risk_analysis_q6'] == 'NO') { echo '&#2344;&#2361;&#2368;&#2306;'; }else { echo ''; }?></font></label>
					</td>
				</tr>
				<tr>
					<td width="58" height="33" align="center" bgcolor="#FDF9EE">
					<font style="font-size: 8.5pt" face="Verdana" color="#000000">
					7</font></td>
					<td width="518" bgcolor="#FDF9EE">
					<font face="Verdana" style="font-size: 9.5pt" color="#000000">
					&#2325;&#2381;&#2351;&#2366; &#2335;&#2376;&#2306;&#2325; &#2325;&#2366; &#2347;&#2352;&#2381;&#2358; (&#2335;&#2379;&#2306;&#2335;&#2368; &#2325;&#2375; &#2344;&#2367;&#2330;&#2375;) &#2325;&#2381;&#2359;&#2340;&#2367;&#2327;&#2381;&#2352;&#2360;&#2381;&#2340; &#2309;&#2341;&#2357;&#2366; &#2327;&#2344;&#2381;&#2342;&#2366; &#2361;&#2376;?</font></td>
					<td width="133" bgcolor="#FDF9EE" align="center">
						<label id="habitation_name"><font style="font-size: 8.5pt; font-style: normal" face="Verdana"><?php if($row['risk_analysis_q7'] == 'YES'){ echo '&#2361;&#2366;&#2305;'; } else if($row['risk_analysis_q7'] == 'NO') { echo '&#2344;&#2361;&#2368;&#2306;'; }else { echo ''; }?></font></label>
					</td>
				</tr>
				<tr>
					<td width="58" height="33" align="center" bgcolor="#FDF9EE">
					<font style="font-size: 8.5pt" face="Verdana" color="#000000">
					8</font></td>
					<td width="518" bgcolor="#FDF9EE">
					<font face="Verdana" style="font-size: 9.5pt" color="#000000">
					&#2325;&#2381;&#2351;&#2366; &#2332;&#2354; &#2349;&#2339;&#2381;&#2337;&#2366;&#2352;&#2339; &#2325;&#2366; &#2325;&#2381;&#2359;&#2375;&#2340;&#2381;&#2352;  &#2309;&#2344;&#2369;&#2330;&#2367;&#2340; &#2344;&#2366;&#2354;&#2367;&#2323;&#2306; &#2342;&#2381;&#2357;&#2366;&#2352;&#2366; &#2349;&#2352;&#2366; &#2332;&#2366; &#2352;&#2361;&#2366; &#2361;&#2376;?</font></td>
					<td width="133" bgcolor="#FDF9EE" align="center">
						<label id="habitation_name"><font style="font-size: 8.5pt; font-style: normal" face="Verdana"><?php if($row['risk_analysis_q8'] == 'YES'){ echo '&#2361;&#2366;&#2305;'; } else if($row['risk_analysis_q8'] == 'NO') { echo '&#2344;&#2361;&#2368;&#2306;'; }else { echo ''; }?></font></label>
					</td>
				</tr>
				<tr>
					<td width="58" height="33" align="center" bgcolor="#FDF9EE">
					<font style="font-size: 8.5pt" face="Verdana" color="#000000">
					9</font></td>
					<td width="518" bgcolor="#FDF9EE">
					<font face="Verdana" style="font-size: 9.5pt" color="#000000">
					&#2325;&#2381;&#2351;&#2366; &#2335;&#2376;&#2306;&#2325; &#2346;&#2352;&#2367;&#2325;&#2381;&#2359;&#2375;&#2340;&#2381;&#2352; &#2350;&#2375;&#2306; &#2324;&#2352; &#2325;&#2379;&#2312; &#2342;&#2370;&#2359;&#2367;&#2340; &#2360;&#2381;&#2352;&#2379;&#2340; &#2361;&#2376; &#2351;&#2366; &#2332;&#2354; &#2360;&#2306;&#2327;&#2381;&#2352;&#2361;&#2339; &#2325;&#2381;&#2359;&#2375;&#2340;&#2381;&#2352; &#2361;&#2376;?(&#2332;&#2376;&#2360;&#2375; -&#2325;&#2370;&#2396;&#2366;-&#2325;&#2396;&#2325;&#2335;)</font></td>
					<td width="133" bgcolor="#FDF9EE" align="center">
						<label id="habitation_name"><font style="font-size: 8.5pt; font-style: normal" face="Verdana"><?php if($row['risk_analysis_q9'] == 'YES'){ echo '&#2361;&#2366;&#2305;'; } else if($row['risk_analysis_q9'] == 'NO') { echo '&#2344;&#2361;&#2368;&#2306;'; }else { echo ''; }?></font></label>
					</td>
				</tr>
				<tr>
					<td width="58" align="center" bgcolor="#FDF9EE">
					<font style="font-size: 8.5pt" face="Verdana" color="#000000">
					10</font></td>
					<td width="518" bgcolor="#FDF9EE">
					<font face="Verdana" style="font-size: 9.5pt" color="#000000">
					&#2325;&#2381;&#2351;&#2366; &#2348;&#2366;&#2354;&#2381;&#2335;&#2368; &#2325;&#2379; &#2320;&#2360;&#2375; &#2360;&#2381;&#2341;&#2366;&#2344; &#2346;&#2352; &#2346;&#2335;&#2325; &#2342;&#2367;&#2351;&#2366; &#2327;&#2351;&#2366; &#2361;&#2376; &#2332;&#2367;&#2360;&#2360;&#2375; &#2357;&#2361; &#2342;&#2370;&#2359;&#2367;&#2340; &#2361;&#2379; &#2332;&#2366;&#2351;&#2375;?</font></td>
					<td width="133" bgcolor="#FDF9EE" align="center">
						<label id="habitation_name"><font style="font-size: 8.5pt; font-style: normal" face="Verdana"><?php if($row['risk_analysis_q10'] == 'YES'){ echo '&#2361;&#2366;&#2305;'; } else if($row['risk_analysis_q10'] == 'NO') { echo '&#2344;&#2361;&#2368;&#2306;'; }else { echo ''; }?></font></label>
					</td>
				</tr>
				<!--<tr>
					<td width="58" align="center" bgcolor="#FDF9EE">
					<font style="font-size: 8.5pt" face="Verdana" color="#000000">
					11</font></td>
					<td width="518" bgcolor="#FDF9EE">
					<font face="Verdana" style="font-size: 8.5pt" color="#000000">
					Can water, dirt or dust enter the well/borewell at the point 
					of attachment of handpump?</font></td>
					<td width="133" bgcolor="#FDF9EE" align="center">
						<font style="font-size: 8.5pt" face="Arial" color="#000000">
						<input type="radio" name="risk_q11" id="risk_q11" value="YES">Yes
						<font style="font-size: 8.5pt">
				  		<input type="radio" name="risk_q11" id="risk_q11" value="NO"> No</font></font>
					</td>
				</tr>
				<tr>
					<td width="58" align="center" bgcolor="#FDF9EE">
					<font style="font-size: 8.5pt" face="Verdana" color="#000000">
					12</font></td>
					<td width="518" bgcolor="#FDF9EE">
					<font face="Verdana" style="font-size: 8.5pt" color="#000000">
					Is apron missing, damaged or less than 1.85 m in diameter ?</font></td>
					<td width="133" bgcolor="#FDF9EE" align="center">
						<font style="font-size: 8.5pt" face="Arial" color="#000000">
						<input type="radio" name="risk_q12" id="risk_q12" value="YES">Yes
						<font style="font-size: 8.5pt">
				  		<input type="radio" name="risk_q12" id="risk_q12" value="NO"> No</font></font>
					</td>
				</tr>
				<tr>
					<td width="58" align="center" bgcolor="#FDF9EE">
					<font style="font-size: 8.5pt" face="Verdana" color="#000000">
					13</font></td>
					<td width="518" bgcolor="#FDF9EE">
					<font face="Verdana" style="font-size: 8.5pt" color="#000000">
					can waste water collect on apron ?</font></td>
					<td width="133" bgcolor="#FDF9EE" align="center">
						<font style="font-size: 8.5pt" face="Arial" color="#000000">
						<input type="radio" name="risk_q13" id="risk_q13" value="YES">Yes
						<font style="font-size: 8.5pt">
				  		<input type="radio" name="risk_q13" id="risk_q13" value="NO"> No</font></font>
					</td>
				</tr>
				<tr>
					<td width="58" align="center" bgcolor="#FDF9EE">
					<font style="font-size: 8.5pt" face="Verdana" color="#000000">
					14</font></td>
					<td width="518" bgcolor="#FDF9EE">
					<font face="Verdana" style="font-size: 8.5pt" color="#000000">
					Do people regularly bath, and wash closth or cooking/ eating 
					uthnsils at the hand pump/GLR</font></td>
					<td width="133" bgcolor="#FDF9EE" align="center">
						<font style="font-size: 8.5pt" face="Arial" color="#000000">
						<input type="radio" name="risk_q14" id="risk_q14" value="YES">Yes
						<font style="font-size: 8.5pt">
				  		<input type="radio" name="risk_q14" id="risk_q14" value="NO"> No</font></font>
					</td>
				</tr>
				<tr>
					<td width="58" align="center" bgcolor="#FDF9EE">
					<font style="font-size: 8.5pt" face="Verdana" color="#000000">
					15</font></td>
					<td width="518" bgcolor="#FDF9EE">
					<font face="Verdana" style="font-size: 8.5pt" color="#000000">
					Are villagers satisfied with PHED supply </font></td>
					<td width="133" bgcolor="#FDF9EE" align="center">
						<font style="font-size: 8.5pt" face="Arial" color="#000000">
						<input type="radio" name="risk_q15" id="risk_q15" value="YES">Yes
						<font style="font-size: 8.5pt">
				  		<input type="radio" name="risk_q15" id="risk_q15" value="NO"> No</font></font>
					</td>
				</tr>
				<tr>
					<td width="58" align="center" bgcolor="#FDF9EE">
					<font style="font-size: 8.5pt" face="Verdana" color="#000000">
					16</font></td>
					<td width="518" bgcolor="#FDF9EE">
					<font face="Verdana" style="font-size: 8.5pt" color="#000000">
					Are there pvt TWs/OWs used by villagers for drinking water 
					supply</font></td>
					<td width="133" bgcolor="#FDF9EE" align="center">
						<font style="font-size: 8.5pt" face="Arial" color="#000000">
						<input type="radio" name="risk_q16" id="risk_q16" value="YES">Yes
						<font style="font-size: 8.5pt">
				  		<input type="radio" name="risk_q16" id="risk_q16" value="NO">No</font></font>
					</td>
				</tr>-->
			</table>
			</td>
		</tr>
		<tr>
			<td>&nbsp;</td>
		</tr>
		<tr>
			<td>&nbsp;
			</td>
		</tr>
		<tr>
			<td bgcolor="#EEEEEE" height="20">
			<font face="Arial" color="#000000">
			<span style="font-size: 8.5pt; font-weight: 700">&nbsp;
			<span style="font-weight: 700; font-size:8.5pt">
			<font style="font-size: 8.5pt; font-weight:700"></font></span>Result 
			and Recommendations </span></font></td>
		</tr>
		<tr>
			<td>
			<table border="0" width="100%" id="table13" cellspacing="0" height="74">
				<tr>
					<td bgcolor="#F7E6B7">&nbsp;<font style="font-size: 8.5pt" face="Verdana" color="#000000">&nbsp; 
					The following important points of risk were noted</font></td>
				</tr>
				<tr>
					<td bgcolor="#FDF9EE">
					<label id="habitation_name"><font style="font-size: 8.5pt; font-style: normal" face="Verdana"><?php echo"$row[imp_points_risk]";?></font></label></td>
				</tr>
				<tr>
					<td bgcolor="#FDF9EE">&nbsp;</td>
				</tr>
				<tr>
					<td bgcolor="#F7E6B7">&nbsp;
					<font style="font-size: 8.5pt" face="Verdana" color="#000000">
					N<font style="font-size: 8.5pt">ame of th</font>e Assessor
					</font></td>
				</tr>
				<tr>
					<td bgcolor="#FDF9EE"><label id="habitation_name"><font style="font-size: 8.5pt; font-style: normal" face="Verdana"><?php echo "$row[name_assessor]";?></font></label></td>
				</tr>
				<tr>
					<td bgcolor="#FDF9EE">&nbsp;</td>
				</tr>
				<tr>
					<td bgcolor="#F7E6B7">&nbsp;
					<font style="font-size: 8.5pt" face="Verdana" color="#000000">
					N<font style="font-size: 8.5pt">ame of th</font>e Key 
					Contact</font></td>
				</tr>
				<tr>
					<td bgcolor="#FDF9EE"><label id="habitation_name"><font style="font-size: 8.5pt; font-style: normal" face="Verdana"><?php echo "$row[name_key_contact]";?></font></label></td>
				</tr>
				<tr>
					<td bgcolor="#FDF9EE">&nbsp;</td>
				</tr>
				<tr>
					<td bgcolor="#F7E6B7">&nbsp;<font style="font-size: 8.5pt" face="Verdana" color="#000000"> 
					Contact Details&nbsp; </font></td>
				</tr>
				<tr>
					<td bgcolor="#FDF9EE"><label id="habitation_name"><font style="font-size: 8.5pt; font-style: normal" face="Verdana"><?php echo "$row[contact_details]";?></font></label></td>
				</tr>
				<tr>
					<td bgcolor="#FDF9EE">&nbsp;</td>
				</tr>
			</table>
			</td>
		</tr>
		<tr>
			<td>
			<table border="0" width="100%" id="table11" cellspacing="0" cellpadding="0">
				<tr>
					<td>&nbsp;</td>
				</tr>
			</table>
			</td>
		</tr>
		<tr>
			<td>&nbsp;
			</td>
		</tr>
		<tr>
			<td>
			<p align="center">
			<input type="submit" value="Close" name="submit" style="font-size: 8pt; font-family: Verdana; border-style: solid; border-width: 1px"></td>
		</tr>
		<tr>
			<td>&nbsp;</td>
		</tr>
	</table>
	</form>
</div>
<!--</div>-->
</body>
</html>
